var Validation = {
	/*
	 * This function checks if the value is empty and if true shows the
	 * errorElement. Otherwise it hides it.
	 */
	empty : function(value, errorElement) {
		if (value == "") {
			$(errorElement).show();
			return true;
		}
		$(errorElement).hide();
		return false;
	},
	/*
	 * This function hides the errorElement when the control field is focused by
	 * the user
	 */
	hideOnFocus : function(controlField, errorElement) {
		$(controlField).focus(function() {
			$(errorElement).hide();
		});
	}
};
